/* 组件库样式 */
.component-palette {
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.component-palette-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.component-palette-search {
  margin-bottom: 12px;
}

.component-palette-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.component-category {
  margin-bottom: 16px;
}

.component-category-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.component-item {
  padding: 8px;
  margin-bottom: 8px;
  cursor: move;
  transition: all 0.3s;
}

.component-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.component-item-dragging {
  opacity: 0.5;
}

.component-item-content {
  display: flex;
  align-items: center;
}

.component-item-icon {
  margin-right: 8px;
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1890ff;
}

.component-item-info {
  flex: 1;
}

.component-item-name {
  font-weight: 500;
}

.component-item-desc {
  font-size: 12px;
  color: #999;
}

/* 画布样式 */
.canvas {
  position: relative;
  background-color: #f8f8f8;
}

.canvas.show-grid {
  background-image: linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 20px 20px;
}

.canvas-placeholder {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 16px;
}

.canvas-component {
  position: relative;
  background-color: #fff;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.canvas-component:hover {
  border-color: #1890ff;
}

.canvas-component.selected {
  border: 1px solid #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.drag-handle {
  height: 24px;
  background-color: #f5f5f5;
  cursor: move;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
}

.component-content {
  padding: 8px;
  min-height: calc(100% - 24px);
}

.component-actions {
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 100;
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-right: none;
  display: flex;
  flex-direction: column;
}

.action-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  color: #1890ff;
}

.delete-btn:hover {
  color: #f5222d;
}

/* 属性面板样式 */
.property-panel {
  background-color: #fff;
  height: 100%;
}

.property-panel-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px;
  font-weight: bold;
}

.property-panel-content {
  padding: 16px;
}

/* 工具栏样式 */
.toolbar {
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
} 